package com.deeper.customview.ui.c7.exercise.c07e01;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.deeper.customview.BaseFragment;
import com.deeper.customview.R;

public class Chapter07Exercise01Fragment extends BaseFragment {

    private SwapLayout swapLayout;


    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.fragment_chapter07_exercise01, container, false);
        swapLayout = root.findViewById(R.id.sl);
        root.findViewById(R.id.spread).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                swapLayout.spread();
            }
        });
        return root;
    }
}
